API Documentation
ClearTargetsPass.h
1 // ClearTargetsPass.h
3 //
5 
6 namespace nkGraphics
7 {
14  class DLL_GRAPHICS_EXPORT ClearTargetsPass : public Pass
15  {
16  public :
17 
18  // Getters
22  bool getClearColor () const ;
26  bool getClearDepth () const ;
30  const float* getClearColorValues () const ;
34  float getClearColorValueR () const ;
38  float getClearColorValueG () const ;
42  float getClearColorValueB () const ;
46  float getClearColorValueA () const ;
50  unsigned int getTargetIndex () const ;
51 
52  // Setters
58  void setClearColor (bool value) ;
67  void setClearColorValues (float r, float g, float b, float a) ;
73  void setClearDepth (bool value) ;
79  void setTargetIndex (unsigned int value) ;
80 
86  virtual void exportClassToTree (nkExport::Node* rootNode) override ;
92  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
93  } ;
94 }
nkGraphics::ClearTargetsPass::getTargetIndex
unsigned int getTargetIndex() const
nkGraphics::ClearTargetsPass::setClearDepth
void setClearDepth(bool value)
nkGraphics::ClearTargetsPass::getClearColorValues
const float * getClearColorValues() const
nkGraphics::ClearTargetsPass::setClearColorValues
void setClearColorValues(float r, float g, float b, float a)
nkGraphics::ClearTargetsPass::getClearColor
bool getClearColor() const
nkGraphics::ClearTargetsPass::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::ClearTargetsPass::setClearColor
void setClearColor(bool value)
nkGraphics::ClearTargetsPass::getClearColorValueG
float getClearColorValueG() const
nkGraphics::ClearTargetsPass::getClearColorValueA
float getClearColorValueA() const
nkGraphics::ClearTargetsPass::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::ClearTargetsPass
A clear target pass, during which some targets are cleared.
Definition: ClearTargetsPass.h:15
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkGraphics::Pass
The base for a pass within a TargetOperations.
Definition: Pass.h:15
nkGraphics::ClearTargetsPass::getClearDepth
bool getClearDepth() const
nkGraphics::ClearTargetsPass::setTargetIndex
void setTargetIndex(unsigned int value)
nkGraphics::ClearTargetsPass::getClearColorValueB
float getClearColorValueB() const
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ClearTargetsPass::getClearColorValueR
float getClearColorValueR() const